<?php

$ROOT = dirname(__FILE__);
$APP = dirname($ROOT);
//echo dirname($ROOT);die();
define("LIBS","$ROOT/helper/libs");
set_include_path(get_include_path() . PATH_SEPARATOR . LIBS);
define ("ENCODEING","utf-8");
define ('TIME_ZONE','Asia/Shanghai');
define ("APP_PATH",$ROOT);

define ("DIR_TEMPLATE",$ROOT."/templates");
define ("DIR_TEMPLATE_COMPILE",$ROOT."/templates_c");
define ("DIR_TEMPLATE_CACHE",$ROOT."/cache");
define ("DIR_TEMPLATE_LIBS",$ROOT.'/include');
define ("TEMPLATE_IS_CACHED",false);

define('CONTROLLER',$APP.'/controllers');
define('PUBLIC',$APP.'/public');

$path = $ROOT.'\libs\Smarty.class.php';


require_once($path);
class User_Smarty extends Smarty{

	function __construct()
	{
		parent::__construct();
		$this->template_dir = DIR_TEMPLATE;
		$this->compile_dir = DIR_TEMPLATE_COMPILE;
		$this->cache_dir =DIR_TEMPLATE_CACHE;
		$this->caching = TEMPLATE_IS_CACHED;
		$this->left_delimiter = '{{';
		$this->right_delimiter = '}}';
	}

}
$GLOBALS['tpl'] = new User_Smarty();

//echo 1;print_r($GLOBALS['tpl']);die();



?>